package com.demo.meidianapp.mvp.model;


import com.demo.meidianapp.mvp.base.retroft.BaseApiImpl;
import com.demo.meidianapp.utils.AppConfig;

public class RetrofitApi extends BaseApiImpl {
    private static RetrofitApi api = new RetrofitApi(AppConfig.BASE_URL);

    // private static RetrofitApi api = new RetrofitApi(RetrofitApiService.FACE_URL);
    public RetrofitApi(String baseUrl) {
        super(baseUrl);
    }

    public static RetrofitApiService getInstance() {
        if (api == null) {
            //api = new RetrofitApi(RetrofitApiService.BASE_URL);
            api = new RetrofitApi(AppConfig.BASE_URL);
        }
        return api.getRetrofit().create(RetrofitApiService.class);
    }
}
